package com.yy.weixinpay.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yy.weixinpay.entity.OrderInfo;
import com.yy.weixinpay.enums.OrderStatus;

import java.util.List;

public interface OrderInfoService extends IService<OrderInfo> {

    OrderInfo createOrderByProductId(Long productId,String paymentType);
//
//    //保存二维码
    void saveCodeUrl(String orderNo,String codeUrl);



    List<OrderInfo> listOrderByCreateTimeDesc();

    //更新订单状态
    void updateStatusByOrderNo(String out_trade_no, OrderStatus success);

    String getOrderStatus(String out_trade_no);

    List<OrderInfo> getNoPayOrderByDuration(int minutes,String paymentType);

    OrderInfo getOrderByOrderNo(String orderNo);
}
